package cn.livingCloud.repository;

import cn.livingCloud.dto.Page;
import cn.livingCloud.entity.content.ReplyRule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by sujiantang on 2015/12/8.
 */
@Repository
public interface ReplyRuleMapper {

    ReplyRule findReplyRule(String uuid);

    void save(ReplyRule replyRule);

    List<ReplyRule> findReplyRuleList(Page formDto);

    void updateEnable(ReplyRule replyRule);

    void update(ReplyRule replyRule);

    void delete(String uuid);

    List<ReplyRule> getList();

    ReplyRule getReplyRuleByContent(String keyWord);

    List<ReplyRule> searchRule(@Param("key") String key);
}
